package com.qsmx.store.app.main.goods.entity;

import android.support.annotation.Nullable;

import java.util.Objects;

public class GoodsCreateOrderEntity {

    private String goodsName;
    private int goodsId;
    private String goodsCode;
    private int detailNum;
    private int price;
    private int money;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public int getDetailNum() {
        return detailNum;
    }

    public void setDetailNum(int detailNum) {
        this.detailNum = detailNum;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public boolean equals(@Nullable Object obj) {

        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;

        GoodsCreateOrderEntity entity = (GoodsCreateOrderEntity) obj;

        return Objects.equals(goodsId, entity.goodsId);
    }
}
